<template>
    <div class="slider-demo-block">
        <span class="demonstration">{{ nameTag }}</span>
        <el-slider v-model="value" :step="step" max="max" />
    </div>
</template>

<script lang="ts" setup>

defineProps({
    value: Number,
    step: Number,
    max: Number,
    nameTag: String,
})
</script>
<style scoped>
.slider-demo-block {
    max-width: 600px;
    display: flex;
    align-items: center;
}

.slider-demo-block .el-slider {
    margin-top: 0;
    margin-left: 12px;
}

.slider-demo-block .demonstration {
    font-size: 14px;
    color: var(--el-text-color-secondary);
    line-height: 44px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
}

.slider-demo-block .demonstration+.el-slider {
    flex: 0 0 70%;
}
</style>